#pragma once
#include "windows.h"
#include "d3d9.h"
#include "d3dx9.h"

class Sprites
{
public :
	static LPD3DXSPRITE _spriteHandler;
	LPDIRECT3DTEXTURE9 _image;
	int _width;
	int _height;
	int _index;
	int					_left;
	int					_top;
	bool				_loop;
	int					_count;	
	int					_row;
	Sprites(LPDIRECT3DTEXTURE9 image,bool loop,int index,int count,int row,int width,int height,int left,int top);
	void Draw(int VirtualLeft,int StyleDraw,bool isClear);
	void Draw();
	static LPDIRECT3DTEXTURE9 LoadTexture(LPCSTR filePath,D3DCOLOR transcolor);
};
